﻿using Ebusiness_Authservice.Data;
using Ebusiness_Authservice.Entities;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Domain.Repositories.EntityFrameworkCore;
using Volo.Abp.EntityFrameworkCore;

namespace Ebusiness_OrderService.Repositorys
{
    [Dependency(ServiceLifetime.Transient)]
    public class AuthserRepository : EfCoreRepository<Ebusiness_AuthserviceDbContext, ApplicationUser, Guid>, IAuthserRepository
    {
        public AuthserRepository(IDbContextProvider<Ebusiness_AuthserviceDbContext> dbContextProvider) : base(dbContextProvider)
        {

        }

        public bool InsertAdd_Application()
        {
            throw new NotImplementedException();
        }

        public override async Task<ApplicationUser> InsertAsync(ApplicationUser entity, bool autoSave = false, CancellationToken cancellationToken = default)
        {
            //var db = (await GetDbContextAsync()).GetHashCode();
            //var ti = this.GetHashCode();
            return await base.InsertAsync(entity, autoSave, cancellationToken);
        }

        
    }
}
